package org.example.springbirthday.utils;

import java.time.MonthDay;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 九转苍翎
 * Date: 2025/8/7
 * Time: 16:30
 */
public class BirthdayUtil {
    public static boolean isBirthdayToday(String birthday) {
        try {
            return MonthDay.now().toString().substring(2, 7).equals(birthday.substring(5, 10));
        }catch (Exception e) {
            return false;
        }
    }
}
